/*****************************************************************************
 Copyright (c) 2011, HUST Gaoliang. All rights reserved.
------------------------------------------------------------------------------
                              lcd12864\lcd12864.h
  Project Code: 430
   Module Name: LCD
  Date Created: 2013-01-06
        Author: gaoliang
   Description: LCD API

------------------------------------------------------------------------------
  Modification History
  DATE        NAME             DESCRIPTION
  --------------------------------------------------------------------------
  YYYY-MM-DD

*****************************************************************************/

#ifndef __lcd12864_H__
#define __lcd12864_H__

void  LCD12864_checkbusy(void);
void  LCD12864_writedata(unsigned char Data);
unsigned char LCD12864_readdata(void);
void  LCD12864_writecommand(unsigned char CmdCode);

void  LCD12864_sendascii(unsigned char hang,unsigned char lie,char sign);
void  LCD12864_sendgb2312(unsigned char hang,unsigned char lie,unsigned int sign);

void  LCD12864_startprobar(unsigned char x,unsigned char speed);
void  LCD12864_cleardram(void);
void  LCD12864_cleargram(unsigned char Mode);
void  LCD12864_displaystring(unsigned char x,unsigned char y,unsigned char *Str);

void  LCD12864_init(void);
void  LCD12864_setstatus(unsigned char cmd);

#endif

